﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Title>attrobj</Title>
      <Author>singba</Author>
      <Description>
      </Description>
      <HelpUrl>
      </HelpUrl>
      <Shortcut>attrobj</Shortcut>
    </Header>
    <Snippet>
      <Declarations>
        <Literal Editable="true">
          <ID>name</ID>
          <ToolTip>属性名称</ToolTip>
          <Default>name</Default>
          <Function>
          </Function>
        </Literal>
        <Literal Editable="true">
          <ID>type</ID>
          <ToolTip>属性类型</ToolTip>
          <Default>string</Default>
          <Function>
          </Function>
        </Literal>
      </Declarations>
      <Code Language="csharp"><![CDATA[#region 属性 $name$
        private $type$ _$name$ = null; 
        public $type$ $name$
        {
            get
            {
				if(_$name$==null)
				{
				    _$name$ = new $type$();
				}
                return _$name$;
            }
            set
            {
                _$name$ = value;
                RaisePropertyChanged(() => $name$);
            }
        }
        #endregion
	    $end$]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>